package com.bookcity.front.webfront.service.impl;

import com.bookcity.front.webfront.domain.Bcollect;
import com.bookcity.front.webfront.mapper.BcollectMapper;
import com.bookcity.front.webfront.service.IBcollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 书架Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-09
 */
@Service
public class BcollectServiceImpl implements IBcollectService 
{
    @Autowired
    private BcollectMapper bcollectMapper;

    /**
     * 查询书架
     * 
     * @param id 书架主键
     * @return 书架
     */
    @Override
    public Bcollect selectBcollectById(Long id)
    {
        return bcollectMapper.selectBcollectById(id);
    }

    /**
     * 查询书架列表
     * 
     * @param bcollect 书架
     * @return 书架
     */
    @Override
    public List<Bcollect> selectBcollectList(Bcollect bcollect)
    {
        return bcollectMapper.selectBcollectList(bcollect);
    }

    /**
     * 新增书架
     * 
     * @param bcollect 书架
     * @return 结果
     */
    @Override
    public int insertBcollect(Bcollect bcollect)
    {
        return bcollectMapper.insertBcollect(bcollect);
    }

    /**
     * 修改书架
     * 
     * @param bcollect 书架
     * @return 结果
     */
    @Override
    public int updateBcollect(Bcollect bcollect)
    {
        return bcollectMapper.updateBcollect(bcollect);
    }

    /**
     * 批量删除书架
     * 
     * @param ids 需要删除的书架主键
     * @return 结果
     */
    @Override
    public int deleteBcollectByIds(Long[] ids)
    {
        return bcollectMapper.deleteBcollectByIds(ids);
    }

    /**
     * 删除书架信息
     * 
     * @param id 书架主键
     * @return 结果
     */
    @Override
    public int deleteBcollectById(Long id)
    {
        return bcollectMapper.deleteBcollectById(id);
    }
}
